import axios from '@/network/axios'

// 按时间查询
export function toTimeGetBrandedList(params = {}) {
  return axios({
    method: 'GET',
    url: '/branded-sell-discount-time/list',
    params
  })
}

// 不按时间查询
export function noToTimeGetBrandedList(params = {}) {
  return axios({
    method: 'GET',
    url: '/branded-sell-discount/list',
    params
  })
}

export function deleteTimeBranded(params = {}) {
  return axios({
    method: 'GET',
    url: '/branded-sell-discount-time/delete',
    params
  })
}

// 新增/保存销售品牌折数(有时间)
export function saveTimeBranded(params = {}) {
  return axios({
    method: 'post',
    url: '/branded-sell-discount-time/save',
    data: params
  })
}

// 保存销售品牌折数(没有时间)
export function saveNoTimeBranded(params = {}) {
  return axios({
    method: 'post',
    url: '/branded-sell-discount/save',
    data: params
  })
}

// 删除没有时间
export function deleteNoTimeBranded(params) {
  return axios({
    method: 'get',
    url: '/branded-sell-discount/delete',
    params
  })
}
